package 练习;

//判断两个数组是否相同；

public class test07 {
    public static void main(String[] args) {
        int[] arr1 = {11, 22, 33, 44, 55, 66};
        int[] arr2 = {11, 22, 33, 44, 55, 66};

        boolean s = compare(arr1, arr2);
        System.out.println(s);

    }

    public static boolean compare(int[] arr1, int[] arr2) {

        if (arr1.length != arr2.length) {
            return false;
        }

        for (int i1 = 0; i1 < arr2.length; i1++) {
            if (arr1[i1] != arr2[i1]) {
                return false;
            }

        }
        return true;
    }
}